package spring.boot.adminx.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class WelcomeController {

	@GetMapping("/welcome")
	@PreAuthorize("true")
	public String welcome(){
		return "welcome/welcome";
	}

	@GetMapping("/welcome1")
	@PreAuthorize("true")
	public String welcome1(){
		return "welcome/welcome1";
	}
}
